{% extends "base_generic.html" %}

{% block content %}

<h1>删除图书</h1>

{% if book.bookinstance_set.all %}
<p>在删除所有副本之前，您无法删除此图书：</p>

<ul>
{% for copy in book.bookinstance_set.all %}
  <li><a href="{{ copy.get_absolute_url }}">{{copy.id}}</a> (版本：{{copy.imprint}})</li>
{% endfor %}
</ul>

{% else %}
<p>您确定要删除图书：{{ book }}吗？</p>

<form action="" method="POST">
  {% csrf_token %}
  <input type="submit" action="" value="是的，删除。">
</form>
{% endif %}

{% endblock %}
